<?php

require_once 'database/db.php';

function insertSecureComment($secure_comment, $expire_time,$secure_type) {
    $link = db::instance()->link();
    $sql = "insert into secure_backup values(null,'$secure_comment','$expire_time','$secure_type');";
    mysql_query($sql, $link);
}

function getActivity($activity_id) {
    $link = db::instance()->link();
    $sql = "SELECT * FROM activity_info WHERE activity_id = '$activity_id';";
    $rs = mysql_query($sql, $link);
    $obj = mysql_fetch_object($rs);
    return $obj;
}
?>